package com.yuan.test_jpa2.repo;

import com.yuan.test_jpa2.po.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

public interface UserRepo extends JpaRepository<User, Integer> {
    List<User> findAllByCreateTimeAfterAndCreateTimeBefore(Date date, Date end);

    List<User> findAllByCreateTimeBefore(Date date);

    List<User> findAllByCreateTimeBetweenOrderByIdDesc(Date date, Date end);
}
